#include <stdio.h>
#include <stdlib.h>
#include "lib_jpeg_adapt.h"

#define READ_FILE "../../resource/test/map.jpg"
#define WRITE_FILE "./out.map.jpg"

int main()
{
    uint32_t width, height, pixelBytes;
    uint8_t* bgra = LibJpegGetBGRA(READ_FILE, &width, &height, &pixelBytes);
    if (bgra)
    {
        LibJpegCreate(WRITE_FILE, bgra, width, height, pixelBytes, 75);
        free(bgra);
    }
    return 0;
}
